#include "aeroquadconnection.h"

AeroQuadConnection::AeroQuadConnection(QObject *parent) :
    BaseConnection(parent)
{
    //TODO
    int *ipAddress = new int[4];

    *(ipAddress) = 10;
    *(ipAddress + 1) = 1;
    *(ipAddress + 2) = 1;
    *(ipAddress + 3) = 10;

    setIPAddress(ipAddress);
}

/*
  sendMessge

  Desc - Sends a message to the device
*/
void AeroQuadConnection::sendMessge(QString message, QString *parameters, int parameterCount)
{
    //TODO
}

/*
  startConnection

  Desc - Starts the connection to the device
*/
void AeroQuadConnection::startConnection()
{
    //TODO
}

/*
  endConnection

  Desc - Ends the connection to the device
*/
void AeroQuadConnection::endConnection()
{
    //TODO
}

/*
  getConnectionStatus

  Desc - Returns the connection status
*/
GCSCommon::ConnectionStatus AeroQuadConnection::getConnectionStatus()
{
    //TODO
}


// slots

/*
  sendMAVLINKMessage

  Desc - Sends a MAVLINK message to the Arduino (using MAVLINKParams
         values for parameters)
*/
void AeroQuadConnection::sendMAVLINKMessage(GCSCommon::MAVLINKCommands command, GCSCommon::MAVLINKParams *parameterArray, int parameterCount)
{
    //TODO
}

/*
  sendMAVLINKMessage #2

  Desc - Sends a MAVLINK message to the Arduino (using Qstring values for parameters)
*/
void AeroQuadConnection::sendMAVLINKMessage(GCSCommon::MAVLINKCommands command, QString *parameterArray, int parameterCount)
{
    //TODO
}

/*
  processMAVLINKMessage

  Desc - Processes an incoming MAVLINK message from the Arduino
*/
void AeroQuadConnection::processMAVLINKMessage()
{
    //TODO
}
